<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script>
		
		arr = [];

		for (var i = 0; i < 7; i++) {
			num = Math.round((Math.random()*(49-1))+1);
			if(arr.indexOf(num)==-1){
				arr.push(num);
			}else{
				i--;
			}
		}

		// num = Math.round((Math.random()*(49-1))+1)

		document.write(arr)






	</script>
</head>
<body>
	
</body>
</html>